﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Automobile.service.Model;
using System.Data.SqlClient;
using Automobile.service.Common;
namespace Automobile.service.DAL
{
   public class DocumentDAL
    {
       SQLHelper helper = new SQLHelper();
       /// <summary>
       /// 报损报溢
       /// </summary>
       /// <param name="d"></param>
       /// <param name="xml"></param>
       /// <returns></returns>
       public int AddDocument(Document dd,string xml)
       { 
           SqlParameter[] par = {
                              new SqlParameter("@Document_Type_Id",dd.Document_Type_Id),
                              new SqlParameter("@Employee_Id",dd.Employee_Id),
                              new SqlParameter("@Document_Remark",dd.Document_Remark),
                              new SqlParameter("@xml",xml)
                              };
           return helper.ExecNonquery_Proc("Proc_SunYi", par);
       }
    }
}
